<?php
/**
 * Created by PhpStorm.
 * User: xuho
 * Date: 2019-12-13
 * Time: 13:58
 */

namespace extend\wechat\mini;


class Subscribe
{
    public static function sendSubscribe($accessToken, $body)
    {
        $url = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token={$accessToken}";

        $data = json_encode($body, JSON_UNESCAPED_UNICODE);
        return postRequest($url, $data);
    }
}